package com.jiyun.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dc_driver")
@ApiModel(value = "DcDriver对象", description = "司机信息表 ")
public class DcDriver {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "司机姓名")
    private String name;

    @ApiModelProperty(value = "司机手机号")
    private String tel;

    @ApiModelProperty(value = "司机头像")
    private String photo;

    @ApiModelProperty(value = "司机性别(1:男0:女)")
    private Integer sex;

    @ApiModelProperty(value = "司机年龄(根据出生日期计算)")
    private Integer age;

    @ApiModelProperty(value = "司机出生日期")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

    @ApiModelProperty(value = "司机邮箱")
    private String mailbox;

    @ApiModelProperty(value = "驾照有效期")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validity;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "行政区")
    private String administrativeDistrict;

    @ApiModelProperty(value = "注册时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registrationTime;

    @ApiModelProperty(value = "车辆外键")
    private Integer cid;

    @ApiModelProperty(value = "司机接单状态(1:听单中2:休息)")
    private Integer status;

    @ApiModelProperty(value = "司机资产总额")
    private BigDecimal totalAssets;

    @ApiModelProperty(value = "当月收入")
    private BigDecimal monthlyIncome;

    @ApiModelProperty(value = "当月提现")
    private BigDecimal currentWithdrawal;

    @ApiModelProperty(value = "司机家庭住址")
    private String address;

    @ApiModelProperty(value = "登录用的验证码")
    private String verify;

    @TableField(exist = false)
    @ApiModelProperty(value = "接单数")
    private Integer num;

    @TableField(exist = false)
    @ApiModelProperty(value = "今日流水")
    private BigDecimal money;

    @TableField(exist = false)
    @ApiModelProperty(value = "输入的金额")
    private BigDecimal inputMoney;

    @ApiModelProperty(value = "登录时间")
    @TableField(value = "login_time")
    private Date loginTime;

    @TableField(exist = false)
    @ApiModelProperty("资产总额")
    private BigDecimal summoney;

    @TableField(exist = false)
    private BigDecimal price;

    @ApiModelProperty(value = "车辆类型外键")
    @TableField(value = "cancel_num")
    private Integer cancelNum;

    @ApiModelProperty(value = "车辆类型外键")
    @TableField(value = "vehty_id")
    private Integer vehtyId;

    @TableField(exist = false)
    private Integer count;
}
